<?php

namespace ldl\mysql;
interface LmysqlTable{
	function insert($data,$replace=false,$returnId=true);
	function update($data,$where);
	function delete($where);
	function count($where,$start=0,$limit=0,$sort='');
	function select($where,$start=0,$limit=0,$sort='');
	/*
	 * query by many PrimayrKey
	 * */
	function fetchs($ids);
	/**
	 * query by PrimaryKey
	 */
	function fetch($id);
}
